package com.yowasa.xiuxian.engine.item.miji;

import com.yowasa.xiuxian.annoations.Item;
import com.yowasa.xiuxian.engine.item.ItemInterface;
import com.yowasa.xiuxian.entity.bo.user.UserBO;
import com.yowasa.xiuxian.entity.enums.ItemTypeEnum;


@Item(name = "搜魂残卷", type = ItemTypeEnum.MI_JI, price = 2000)
public class SouHunCanJuan implements ItemInterface {

    @Override
    public String desc() {
        return "记载着部分搜魂大法神通的修炼之法,因为残缺不全若想参悟需要一定的悟性和人品";
    }

    @Override
    public String effect(UserBO userBO) {
        return "你在干什么？劝你直接把这个卖了嗷，bug物品";
//        if (userBO.getUserConfig().getKnownSpecialEffect().contains("搜魂大法")) {
//            throw new HandlerException("你已知晓了搜魂大法的修炼之法");
//        }
//
//        int rate = userBO.getUserAttr().getUnd() / 5;
//        if (RandomUtil.randomInt(1, 100) < rate) {
//            userBO.getUserConfig().getKnownSpecialEffect().add("搜魂大法");
//            return "你成功获取了[神通]搜魂大法的修习方法";
//        }
//        return "你研习许久,不知是悟性不够还是战技残缺,未能领悟搜魂大法";
    }

}
